//
//  MQLeadListModel.swift
//  leadpagemoudle
//
//  Created by 许博 on 2017/4/17.
//  Copyright © 2017年 mechat. All rights reserved.
//

import UIKit

// data
class MQLeadListModel: NSObject {
    var Account:String?
    var Address:String?{
        let muString = NSMutableString()
        muString.append(country ?? "" )
        muString.append(city ?? "")
        muString.append(state ?? "")
        muString.append(street ?? "")
        return muString as String 
    }
    var city:String?
    var country:String?
    var state:String?
    var street:String?
    
    var BirthDate:String?
    var ConvertedDate:String?
    var Department:String?
    var Description:String?
    var email:String?
    var Gender:String?
    var Industry:String?
    var IsConverted:String?
    var IsUnreadByOwner:String?
    
    var LastActivityDate:String?
    var LastReferencedDate:String?
    var LastReturnedDate:String?
    var LastTransferedDate:String?
    var LastViewedDate:String?
    var LeadSource:String?
    var LeadStatus:String?
    
    var MobilePhone:String?
    var Name:String?
    var NumberOfEmployees:String?
    var Phone:String?
    var Rating:String?
    var ReturnedTimes:String?
    var Salutation:String?
    var Title:String?
    var Website:String?
    
    var created_at:String?
    var created_by:String?
    var id:String?
    var is_deleted:String?
    var owner:String?
    var updated_at:String?
    var updated_by:String?
    var version:String?
    
    
    class func modelCustomPropertyMapper() -> [String:String] {
        return ["city":"Address.city",
                "country":"Address.country",
                "state":"Address.state",
                "street":"Address.street",
                "email":"E-mail"
//                "ID":"id",
        ]
    }
    
}
